import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 离岗请示审批管理-分页列表查询
export function list(data){
  return axios({
    url: assessCheckApi.list,
    method:'get' ,
    data:{...data},
    url_2:'outside',
  })
}
// 流程监控-分页查询
export function flowJkPage(params){
  return axios({
    url: assessCheckApi.flowJkPage,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}
// 流程列表-我的已办
export function myJobPage(params){
  return axios({
    url: assessCheckApi.myJobPage,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}
// 列表-数据修订
export function Pagesjxd(params){
    return axios({
      url: assessCheckApi.Pagesjxd,
      method:'get' ,
      params:{...params},
      url_2:'outside',
    })
}
// 获取已办列表-通过当前流程id-自定义退回
export function queryAllYbJob(params){
    return axios({
      url: assessCheckApi.queryAllYbJob,
      method:'get' ,
      params:{...params},
      url_2:'outside',
    })
  }
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
      url: assessCheckApi.returnUpperzdyFlowJob,
      method:'post' ,
      data:data,
      url_2:'outside',
    })
}
// 导出离岗请示记录数据-表格excel
export function exportLgqsData(params){
    return axios({
      url: assessCheckApi.exportLgqsData,
      method:'get' ,
      params:{...params},
      url_2:'outside',
      responseType: 'arraybuffer'
    })
  }
